package iterator;

import java.util.ArrayList;

/**
 * @Author liangliangzhao
 * @data 2023/4/18 11:13
 */

public class Client {
    public static void main(String[] args) {
        //创建学院
        ArrayList<College> collegeArrayList = new ArrayList<>();
        //创建计算机学院
        ComputerColleage computerColleage = new ComputerColleage();
        //创建信息学院
        InfoColleage infoColleage = new InfoColleage();
        collegeArrayList.add(computerColleage);
        collegeArrayList.add(infoColleage);
        //创建 完成对所有学院的输出类
        OutputImpl output = new OutputImpl(collegeArrayList);
        output.printCollege();
    }
}
